package modele;

import java.util.List;
import java.io.Serializable;
import java.sql.Timestamp;

import javax.persistence.Basic;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Column;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.JoinColumns;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.Transient;
import javax.persistence.Embeddable;

import org.codehaus.jackson.annotate.JsonIgnore;

/**
 * <p>Pojo mapping TABLE compteg</p>
 * <p></p>
 *
 * <p>Generated at Sat Feb 26 23:34:05 CET 2011</p>
 * @author Salto-db Generator v1.0.16 / EJB3
 * 
 */
@Entity
@Table(name = "compteg")
@SuppressWarnings("serial")
public class Compteg implements Serializable {

	/**
	 * Attribute idCompteg.
	 */
	private Integer idCompteg;
	
	/**
	 * Attribute cgNum.
	 */
	private String cgNum;
	
	/**
	 * Attribute cgType.
	 */
	private Integer cgType;
	
	/**
	 * Attribute cgIntitule.
	 */
	private String cgIntitule;
	
	/**
	 * Attribute taCode.
	 */
	private String taCode;
	
	/**
	 * Attribute cgNature.
	 */
	private Integer cgNature;
	
	/**
	 * Attribute cgReport.
	 */
	private Integer cgReport;
	
	/**
	 * List of Docentete
	 */
	private List<Docentete> docentetes = null;

	/**
	 * List of Taxe
	 */
	private List<Taxe> taxes = null;

	
	/**
	 * <p> 
	 * </p>
	 * @return idCompteg
	 */
	@Basic
	@Id
	@GeneratedValue
	@Column(name = "id_compteg")
		public Integer getIdCompteg() {
		return idCompteg;
	}

	/**
	 * @param idCompteg new value for idCompteg 
	 */
	public void setIdCompteg(Integer idCompteg) {
		this.idCompteg = idCompteg;
	}
	
	/**
	 * <p> 
	 * </p>
	 * @return cgNum
	 */
	@Basic
	@Column(name = "cg_num", length = 13)
		public String getCgNum() {
		return cgNum;
	}

	/**
	 * @param cgNum new value for cgNum 
	 */
	public void setCgNum(String cgNum) {
		this.cgNum = cgNum;
	}
	
	/**
	 * <p> 
	 * </p>
	 * @return cgType
	 */
	@Basic
	@Column(name = "cg_type")
		public Integer getCgType() {
		return cgType;
	}

	/**
	 * @param cgType new value for cgType 
	 */
	public void setCgType(Integer cgType) {
		this.cgType = cgType;
	}
	
	/**
	 * <p> 
	 * </p>
	 * @return cgIntitule
	 */
	@Basic
	@Column(name = "cg_intitule", length = 45)
		public String getCgIntitule() {
		return cgIntitule;
	}

	/**
	 * @param cgIntitule new value for cgIntitule 
	 */
	public void setCgIntitule(String cgIntitule) {
		this.cgIntitule = cgIntitule;
	}
	
	/**
	 * <p> 
	 * </p>
	 * @return taCode
	 */
	@Basic
	@Column(name = "ta_code", length = 3)
		public String getTaCode() {
		return taCode;
	}

	/**
	 * @param taCode new value for taCode 
	 */
	public void setTaCode(String taCode) {
		this.taCode = taCode;
	}
	
	/**
	 * <p> 
	 * </p>
	 * @return cgNature
	 */
	@Basic
	@Column(name = "cg_nature")
		public Integer getCgNature() {
		return cgNature;
	}

	/**
	 * @param cgNature new value for cgNature 
	 */
	public void setCgNature(Integer cgNature) {
		this.cgNature = cgNature;
	}
	
	/**
	 * <p> 
	 * </p>
	 * @return cgReport
	 */
	@Basic
	@Column(name = "cg_report")
		public Integer getCgReport() {
		return cgReport;
	}

	/**
	 * @param cgReport new value for cgReport 
	 */
	public void setCgReport(Integer cgReport) {
		this.cgReport = cgReport;
	}
	
	/**
	 * Get the list of Docentete
	 */
	@JsonIgnore
	 @OneToMany(mappedBy="compteg")
	 public List<Docentete> getDocentetes() {
	 	return this.docentetes;
	 }
	 
	/**
	 * Set the list of Docentete
	 */
	 public void setDocentetes(List<Docentete> docentetes) {
	 	this.docentetes = docentetes;
	 }
	/**
	 * Get the list of Taxe
	 */
	 @JsonIgnore
	 @OneToMany(mappedBy="compteg")
	 public List<Taxe> getTaxes() {
	 	return this.taxes;
	 }
	 
	/**
	 * Set the list of Taxe
	 */
	 public void setTaxes(List<Taxe> taxes) {
	 	this.taxes = taxes;
	 }


}